package com.cl.datasubscription.schedule.config;

import com.cl.chlorine.repository.ScheduleRepository;
import com.cl.chlorine.schedule.CronTaskRegistrar;
import com.cl.datasubscription.entity.SubscribeKeywordTask;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * 添加定时任务注册类，用来增加、删除定时任务。
 * @author 81509
 */
@Component
@Primary
public class SpiderCronTaskRegistrar extends CronTaskRegistrar<SubscribeKeywordTask> {

    public SpiderCronTaskRegistrar(ScheduleRepository<SubscribeKeywordTask> scheduleRepository) {
        super(scheduleRepository);
    }

}
